﻿namespace Cos.Module.Template.NHibernate.Test
{
    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class TemplateDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapTemplateDateModel()
        {
            new PersistenceSpecification<TemplateDataModel>(Session)
                .CheckProperty(x => x.TemplateName, "myTemplate")
                .CheckProperty(x => x.TemplateUrl, null)
                .CheckProperty(x => x.IsListView, false)
                .VerifyTheMappings();
        }
    }
}
